<table id="blocks" class="sticky-enabled">
  <thead>
    <tr>
      <th class="region"><?php print t('User'); ?></th>
      <th class="region"><?php print t('Title'); ?></th>
      <th class="region"><?php print t('Name'); ?></th>
      <th class="region"><?php print t('Graduate Time'); ?></th>
      <th class="region"><?php print t('Mail'); ?></th>
      <th class="region"><?php print t('Address'); ?></th>
      <th class="region"><?php print t('Operations'); ?></th>
    </tr>
  </thead>
  <tbody>
    <?php if($user_list!=NULL){?>
    <?php foreach ($user_list as $index => $u): // $user_list is the array of users.?>
      <tr>
        <td><?php print l($u->name, "user/" . $u->uid); ?></td>
        <td><?php print t($u->title); ?></td>
        <td><?php print t($u->name); ?></td>
        <td><?php print t(substr($u->field_graduate_time_value,0,10)); ?></td>
        <td><?php print t($u->mail); ?></td>
        <td><?php print t($u->field_street_line_1_value); ?></td>
        <td><?php print l("edit", "user/" . $u->uid); ?></td>
      </tr>
     <?php endforeach; ?> 
    <?php }else{ ?>
      <tr>
        <td style="color:blue;">No Results Found.</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    <?php } ?>
  </tbody>
      
  <tfoot>
      <tr>
        <td style="color:blue;"><?php print $pre_link ?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="color:blue;"><?php print $next_link ?></td>
      </tr>
  </tfoot>
</table>
